package com.alumni_circle.service.home.impl;

import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.entity.home.LostFound;
import com.alumni_circle.entity.home.VO.LostFoundViewVO;
import com.alumni_circle.mapper.home.LostFoundMapper;
import com.alumni_circle.service.home.ILostFoundService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-07-06 22:46
 */
@Service
public class LostFoundServiceImpl extends BaseServiceImpl<LostFoundMapper, LostFound> implements ILostFoundService {
    @Resource
    private LostFoundMapper lostFoundMapper;

    @Override
    public List<LostFoundViewVO> selectListLostFound() {
        return lostFoundMapper.selectListLostFound();
    }

    @Override
    public List<LostFoundViewVO> selectMyListLostFound(String id) {
        return lostFoundMapper.selectMyListLostFound(id);
    }

    @Override
    public List<LostFoundViewVO> searchListLostFound(String search) {
        return lostFoundMapper.searchListLostFound(search);
    }

    @Override
    public List<LostFoundViewVO> searchMyListLostFound(String id, String search) {
        return lostFoundMapper.searchMyListLostFound(id,search);
    }
}
